import Dict from "@admin/entity/system/dict/Dict";
import R from "~/utils/r";

export interface GetListIn {
    userName: string
    nickName: string
    deptId?: number
}

export class GetListOut extends R<GetListOut> {
    rows: Dict[] = []
    total = 0
}


export type GetByIdIn = number

export class GetByIdOut extends R<GetByIdOut> {
    data: Dict = new Dict()
    postIds: number[] = []
    roleIds: number[] = []
    posts: any[] = []
    roles: any[] = []
}

export interface InsertIn {
    nickName: string
    deptId: string
    phonenumber: string
    email: string
    userName: string
    password: string
    sex: string
    remark: string
}

export interface UpdateIn extends InsertIn {
    userId: number
}